//
// Created by Administrator on 2022/10/10.
//
#include "http_net_config.h"

void _request_http_handler(struct http_socket_event_loop_s *hset, http_fd_t *fds) {
    req_header_t * header = (req_header_t *) http_malloc(sizeof(req_header_t));
    header->fd = fds->fd;
    header->fds = fds;
    header->hset = hset;
    http_request_header_handler(header);
}
// 请求头处理程序
void requst_control(http_inner_request_after_facade_t *hirqaft){
    http_fd_t *fds = hirqaft->fds;
    struct http_socket_event_loop_s *hset = hirqaft->hset;
    http_free(hirqaft);

    _request_http_handler(hset, fds);

    close_http(hset, fds);
}
